import request from '@/utils/request'
// 获取询价统计列表
export function getInquiryReportAPI(data) {
  return request({
    url:'/report/inquiryStatistics',
    method:'post',
    data:data
  })
}
// 成交统计列表
export function getSettleReportAPI(data) {
  return request({
    url:'/report/inquiryStatisticsByDeal',
    method:'post',
    data:data
  })
}
// 未成交统计列表
export function getUnsettleReportAPI(data) {
  return request({
    url:'/report/inquiryStatisticsByNoSuccess',
    method:'post',
    data:data
  })
}
// 采购报价时长分析
export function getPurchaseTimeReportAPI(data) {
  return request({
    url:'/report/priceTimeStatistics',
    method:'post',
    data:data
  })
}
// 物流时长报价分析
export function getLogisticsTimeReportAPI(data) {
  return request({
    url:'/report/freightTimeStatistics',
    method:'post',
    data:data
  })
}
// 整车散货占比分析数据
export function gettruckRatioReportAPI(data) {
  return request({
    url:'/report/completeNumStatistics',
    method:'post',
    data:data
  })
}
// 发货超时分析
export function getDeliOvertimeReportAPI(data) {
  return request({
    url:'/report/deliveryTimeout',
    method:'post',
    data:data
  })
}
// 询价交期分析
export function getInquiryVolReportAPI(data) {
  return request({
    url:'/report/inquirySendDaysStatistics',
    method:'post',
    data:data
  })
}
// 订单交期分析
export function getOrderVolReportAPI(data) {
  return request({
    url:'/report/orderSendDaysStatistics',
    method:'post',
    data:data
  })
}

// 销售部销售个人排名-毛利总额
export function personTotalProfit(data) {
  return request({
    url:'/report/personTotalProfit',
    method:'post',
    data:data
  })
}

// 销售部销售个人排名-审核量
export function personTotalGoodsNum(data) {
  return request({
    url:'/report/personTotalGoodsNum',
    method:'post',
    data:data
  })
}

// 销售部销售个人排名-毛利目标完成率
export function personProfitFinisheRate(data) {
  return request({
    url:'/report/personProfitFinisheRate',
    method:'post',
    data:data
  })
}

// 销售部销售个人排名-出库吨数目标完成率
export function personShipFinisheRate(data) {
  return request({
    url:'/report/personShipFinisheRate',
    method:'post',
    data:data
  })
}

// 销售部销售个人排名-六月均毛利
export function personAvgProfit(data) {
  return request({
    url:'/report/personAvgProfit',
    method:'post',
    data:data
  })
}

// 事业部目标完成率
export function groupFinisheRate(data) {
  return request({
    url:'/report/groupFinisheRate',
    method:'post',
    data:data
  })
}

// 销售部完成数据
export function departmentFinisheRate(data) {
  return request({
    url:'/report/departmentFinisheRate',
    method:'post',
    data:data
  })
}

// 增长毛利
export function profitIncreaseRanking(data) {
  return request({
    url:'/report/profitIncreaseRanking',
    method:'post',
    data:data
  })
}


// 新客户成交毛利排名
export function newCustomerProfitRanking(data) {
  return request({
    url:'/report/newCustomerProfitRanking',
    method:'post',
    data:data
  })
}

// 新客户成交毛利排名
export function orderNumByDay(data) {
  return request({
    url:'/report/orderNumByDay',
    method:'post',
    data:data
  })
}
